#pragma once

#include "stack.h"
#include "queue.h"

//只是一个数据结构 会写个文件系统将其封装
//左子右兄树


struct TREENODE
{
//IN
	struct TREENODE* son;
	struct TREENODE* bro;
//OUT

	void* mark;
    struct TREENODE* par;   //parent

};

struct TREE
{
	struct TREENODE* root;
	unsigned int depth;
};

typedef struct TREENODE tnode;
typedef struct TREE tree;

void TNRemove(tnode* snode);
void TNInsert(tnode* from,tnode* snode);
tnode* TNDeepFind(tnode* root,void* target);
tnode* TNWideFind(tnode* root,void* mark);


